package net.dodoman.chapter7;

public abstract class AbstractTest {
	public abstract void doTest();
}

class SubAbstractTest extends AbstractTest {
	public void doTest() {
		System.out.println("sudotest");
	}
}

class SubAbstractTest1 extends AbstractTest {
	public void doTest() {
		System.out.println("sudotest1");
	}
}

class AbstractTestMain {
	public static void main(String[] args) {
		SubAbstractTest subAbstractTest = new SubAbstractTest();
		SubAbstractTest1 subAbstractTest1 = new SubAbstractTest1();
		test(subAbstractTest);
		test(subAbstractTest1);
	}

	private static void test(AbstractTest abstractTest) {
		abstractTest.doTest();
	}
}